package core.games;

import core.score.ScoreStrategy;
import domain.BowlingFrame;
import domain.enums.BowlingFrameType;

public class BowlingGame extends Game {
    public BowlingGame(ScoreStrategy scoreStrategy) {
        super(scoreStrategy);
    }

    @Override
    protected boolean canAdd() {
        return super.canAdd() || !((BowlingFrame) getFrames().get(getFrames().size() - 1)).getType().equals(BowlingFrameType.NORMAL);
    }

}
